package com.linsen.core.rabbitmq.constant;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author zhaoyong
 * @date 2023/3/13
 */
public interface DelayedConstant {
    /**
     * 死信队列参数
     */
    Map<String, Object> DEFAULT_DELAYED_EXCHANGE_ARGUMENTS = new LinkedHashMap<String, Object>(2) {{
        put("x-delayed-type", "direct");
    }};

    /**
     * 死信队列交换机名称
     */
    String DELAYED_EXCHANGE = "x-delayed-exchange";
    /**
     * 死信队列交换机标识符
     */
    String DELAYED_LETTER_QUEUE_KEY = "x-delayed-letter-exchange";
    /**
     * 死信队列交换机绑定键标识符
     */
    String DELAYED_LETTER_ROUTING_KEY = "x-delayed-letter-routing-key";
}
